# coding=utf-8
a = input().split(" ")
a.reverse()
for i in a:
    print(i, end=" ")
